var Init = {
	jsUrls: [
		'../dist/scripts/libs/jquery.min.js', 
		'../dist/scripts/libs/main.js',
		'../dist/scripts/index.js'
	],
	cssUrls: [
		'../dist/css/libs/global.css'
	],
	getHeadHtml: function(){
		return 	'<meta http-equiv="Content-Type">' + 
				'<meta content="text/html; charset=utf-8">' + 
				'<meta charset="utf-8">' + 
				'<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">' + 
				'<meta name="format-detection" content="telephone=no">' + 
				'<meta name="format-detection" content="email=no">' + 
				'<script src="../dist/scripts/libs/main.js"></script>' + 
				'<link rel="stylesheet" type="text/css" href="../dist/css/libs/global.css" />';
	},
	getFootHtml: function(){
		return 	'<footer>' + 
			  	'	<section class="ub fot">' + 
			  	'		<a href="index.html?tab=home" class="ub-f1">' + 
			  	'			<div class="inx_btm_ico im_home"></div>' + 
			  	'			<p class="tt_home">首页</p>' + 
			  	'		</a>' + 
			  	'		<a href="service.html?tab=service" class="ub-f1">' + 
			  	'			<div class="inx_btm_ico im_service"></div>' + 
			  	'			<p class="tt_service">服务</p>' + 
			  	'		</a>' + 
			  	'		<a href="int.html?tab=int" class="ub-f1">' + 
			  	'			<div class="inx_btm_ico im_int"></div>' + 
			  	'			<p class="tt_int">互动</p>' + 
			  	'		</a>' + 
			  	'		<a href="my.html?tab=my" class="ub-f1">' + 
			  	'			<div class="inx_btm_ico im_my"></div>' + 
			  	'			<p class="tt_my">我的</p>' + 
			  	'		</a>' + 
			  	'	</section>' + 
			  	'</footer>'
	},
	init: function(){
		$('head').prepend(Init.getHeadHtml);
		$(function(){
			var tab = Main.getQueryString("tab")||"home";
			$("body").addClass(tab);

			$(".leftBtn.click").on("click", function(){
				history.go(-1);
			});
		});

	}
}
Init.init();

